package vn.orderonline.core.dao.entity;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "FOOD")
public class Food implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer foodId;
	private String foodName;
	private String foodTitle;
	private Float oldPrice;
	private Float newPrice;
	private String foodImage;
	private String description;
	private Boolean foodStatus;
	private Date createTime;
	private Date updateTime;
	private String createId;
	private String updateId;
	
	public Food() {
		
	}
	
	@Id
	@GeneratedValue
	@Column(name = "FOOD_ID", nullable = false, unique = true, precision = 10, scale = 0)
	public Integer getFoodId() {
		return foodId;
	}
	
	public void setFoodId(Integer foodId) {
		this.foodId = foodId;
	}
	
	@Column(name = "FOOD_NAME", nullable = false, length = 255)
	public String getFoodName() {
		return foodName;
	}
	
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	
	@Column(name = "FOOD_TITLE", length = 255)
	public String getFoodTitle() {
		return foodTitle;
	}
	
	public void setFoodTitle(String foodTitle) {
		this.foodTitle = foodTitle;
	}
	
	@Column(name = "OLD_PRICE", nullable = false)
	public Float getOldPrice() {
		return oldPrice;
	}
	
	public void setOldPrice(Float oldPrice) {
		this.oldPrice = oldPrice;
	}
	
	@Column(name = "NEW_PRICE", nullable = false)
	public Float getNewPrice() {
		return newPrice;
	}
	
	public void setNewPrice(Float newPrice) {
		this.newPrice = newPrice;
	}
	
	@Column(name = "FOOD_IMAGE", length = 255)
	public String getFoodImage() {
		return foodImage;
	}
	public void setFoodImage(String foodImage) {
		this.foodImage = foodImage;
	}
	
	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Column(name = "FOOD_STATUS", nullable = false)
	public Boolean getFoodStatus() {
		return foodStatus;
	}
	
	public void setFoodStatus(Boolean foodStatus) {
		this.foodStatus = foodStatus;
	}
	
	@Column(name = "CREATE_TIME", nullable = false)
	public Date getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Column(name = "CREATE_ID", nullable = false)
	public String getCreateId() {
		return createId;
	}
	
	public void setCreateId(String createId) {
		this.createId = createId;
	}
	
	@Column(name = "UPDATE_ID")
	public String getUpdateId() {
		return updateId;
	}
	
	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}
	
}
